home *** CD-ROM | disk | FTP | other *** search
/ Plug-In Power Pack for Netscape Communicator / Plug-In Power Pack for Netscape Communicator.iso / plugins / dataviews / dvtools / examples / windows / dv_ocx / dvocx1.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-08  |  2.0 KB  |  101 lines

  1. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  2.  
  3. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  4. //  Microsoft Visual C++, your modifications will be overwritten.
  5.  
  6.  
  7. #include "stdafx.h"
  8. #include "dvocx1.h"
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CDvocx
  12.  
  13. IMPLEMENT_DYNCREATE(CDvocx, CWnd)
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CDvocx properties
  17.  
  18. long CDvocx::GetUpdateRate()
  19. {
  20.     long result;
  21.     GetProperty(0x1, VT_I4, (void*)&result);
  22.     return result;
  23. }
  24.  
  25. void CDvocx::SetUpdateRate(long propVal)
  26. {
  27.     SetProperty(0x1, VT_I4, propVal);
  28. }
  29.  
  30. BOOL CDvocx::GetUseDoubleBuffering()
  31. {
  32.     BOOL result;
  33.     GetProperty(0x2, VT_BOOL, (void*)&result);
  34.     return result;
  35. }
  36.  
  37. void CDvocx::SetUseDoubleBuffering(BOOL propVal)
  38. {
  39.     SetProperty(0x2, VT_BOOL, propVal);
  40. }
  41.  
  42. CString CDvocx::GetViewFile()
  43. {
  44.     CString result;
  45.     GetProperty(0x3, VT_BSTR, (void*)&result);
  46.     return result;
  47. }
  48.  
  49. void CDvocx::SetViewFile(LPCTSTR propVal)
  50. {
  51.     SetProperty(0x3, VT_BSTR, propVal);
  52. }
  53.  
  54. BOOL CDvocx::GetAutoUpdate()
  55. {
  56.     BOOL result;
  57.     GetProperty(0x4, VT_BOOL, (void*)&result);
  58.     return result;
  59. }
  60.  
  61. void CDvocx::SetAutoUpdate(BOOL propVal)
  62. {
  63.     SetProperty(0x4, VT_BOOL, propVal);
  64. }
  65.  
  66. /////////////////////////////////////////////////////////////////////////////
  67. // CDvocx operations
  68.  
  69. void CDvocx::StartUpdating()
  70. {
  71.     InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  72. }
  73.  
  74. void CDvocx::StopUpdating()
  75. {
  76.     InvokeHelper(0x6, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  77. }
  78.  
  79. void CDvocx::SetView(LPCTSTR szViewFile)
  80. {
  81.     static BYTE parms[] =
  82.         VTS_BSTR;
  83.     InvokeHelper(0x7, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  84.          szViewFile);
  85. }
  86.  
  87. void CDvocx::CloseView()
  88. {
  89.     InvokeHelper(0x8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  90. }
  91.  
  92. void CDvocx::UpdateWindow()
  93. {
  94.     InvokeHelper(0x9, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  95. }
  96.  
  97. void CDvocx::AboutBox()
  98. {
  99.     InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  100. }
  101.